﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XSTDZ.ERP.Core.Extentions;

namespace XSTDZ.ERP.Domain.Models
{
    /// <summary>
    /// 字典数据
    /// </summary>
    public partial class Refe
    {
        public Refe Init(Refe refe)
        {
            if (!refe.Equals(null))
            {
                if (refe.CreateID.Equals(Guid.Empty))
                {
                    refe.CreateID = refe.Id;
                }
                refe.CreateTime = DateTime.Now;
                refe.UpdateDate = refe.CreateTime;
                refe.Deleted = 0;
                refe.IsEnableEdit = true;
            }
            return this;
        }
    }
}
